﻿@model CloudFranceTriple.WebRole.Models.LoginModel

@{
    ViewBag.Title = CloudFranceTriple.WebRole.Properties.Resources.LoginLoginTitle;
}
<div class="content-padding" style="background-color: #111111;">
    <h1 class="title">@ViewBag.Title</h1>
    <table style="width: 960px;">
        <tbody>
            <tr>
                <td class="loginForm">
                    <h2>@CloudFranceTriple.WebRole.Properties.Resources.LoginLoginTitle2</h2>
                    @using (Html.BeginForm(new { area = "", ReturnUrl = ViewBag.ReturnUrl }))
                    {
                        @Html.AntiForgeryToken()
                        @Html.ValidationSummary(true)
                        <fieldset>
                            <legend>@CloudFranceTriple.WebRole.Properties.Resources.LoginLoginTitle</legend>
                            <ol>
                                <li>
                                    @CloudFranceTriple.WebRole.Properties.Resources.LoginUserName
                                    <br />
                                    @Html.TextBoxFor(m => m.UserName)
                                    @Html.ValidationMessageFor(m => m.UserName)
                                </li>
                                <li>
                                    @CloudFranceTriple.WebRole.Properties.Resources.LoginPassword
                                    <br />
                                    @Html.PasswordFor(m => m.Password)
                                    @Html.ValidationMessageFor(m => m.Password)
                                </li>
                                <li>
                                    @Html.CheckBoxFor(m => m.RememberMe)
                                    @CloudFranceTriple.WebRole.Properties.Resources.LoginRememberMe
                                </li>
                            </ol>
                            <input type="submit" value="@CloudFranceTriple.WebRole.Properties.Resources.LoginLoginFormButton" />
                        </fieldset>
                        <p>
                            @Html.ActionLink(@CloudFranceTriple.WebRole.Properties.Resources.LoginRegisterButton, "Register", new { area = "" })
                        </p>
                        <p>
                            @Html.ActionLink(@CloudFranceTriple.WebRole.Properties.Resources.LoginPasswordRecoveryButton, "PasswordRecovery", new { area = "" })
                        </p>
                    }
                </td>
                <td class="socialLoginForm">
                    <h2>@CloudFranceTriple.WebRole.Properties.Resources.LoginExternalTitle</h2>
                    @Html.Action("ExternalLoginsList", new { area = "", ReturnUrl = ViewBag.ReturnUrl })
                </td>
            </tr>
        </tbody>
    </table>
</div>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
